package com.kingint.web.admin.serve.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.kingint.mbg.dto.BackQueryParam;
import com.kingint.mbg.ser.entity.SerSendMessage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>
 * 群发通知表 服务类
 * </p>
 *
 * @author wxh
 * @since 2020-12-25
 */
public interface SerSendMessageService extends IService<SerSendMessage> {

    /**
     * 删除对应的群发通知信息
     * @param workId
     * @return
     */
    Integer deleteSendMessage(Integer workId);

    /**
     * 查询群发通知列表信息
     * @param queryParam
     * @param pageNum
     * @param pageSize
     * @return
     */
    IPage<SerSendMessage> getSendMessageList(BackQueryParam queryParam, Integer pageNum, Integer pageSize);

    /**
     * 更新对应的群发信息
     * @param serSendMessage
     * @return
     */
    Integer updateInfo(SerSendMessage serSendMessage);

    /**
     * 添加发送群消息信息
     * @param serSendMessage
     * @return
     */
    int insertSendMessageInfo(SerSendMessage serSendMessage);
}
